package com.homeWorkMapReduce;

import org.apache.hadoop.io.Writable;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

public class Work1 implements Writable {
    private String czq;
    private Integer age;

    @Override
    public void write(DataOutput dataOutput) throws IOException {
        dataOutput.writeUTF(czq);
        dataOutput.writeInt(age);
    }

    @Override
    public void readFields(DataInput dataInput) throws IOException {
        this.age = dataInput.readInt();
        this.czq = dataInput.readUTF();
    }
}
